<?=$this->load->view('include_header',null)?>
	<div id="top-panel">
		<div id="panel">
			<ul>
				<li class="current"><a href="<?=site_url('archive/idcard/'.$id)?>" class="report"><?=(empty($id))?"录入新":"编辑"?>客户基本信息</a></li>
				<?php if(!empty($info->id)):?><li><a id="printInfo" class="folder_table">打印本页信息</a></li><?php endif;?>
			</ul>
		</div>
	</div>
	<div id="wrapper">
		<div id="content">
			<div id="box">
<!-- table begin -->
<form method="post" id="form"  enctype="multipart/form-data" action="<?=site_url('schengen/eg_business_update/'.$cateid)?>">

	<h3>埃及商务签证附表</h3>
    <table width="100%">
    
    <tfoot>
        <tr>
            <td colspan="5" align="right">			
			<input type="hidden" name="id" value="<?=$id?>" />
			<input id="button1" type="submit" value="提交信息" />
			<input id="button2" type="reset" value="重置" />			</td>
        </tr>
    </tfoot>

    <tbody>
        <tr class="odd">
            <td colspan="5"></td>
        </tr>
        <tr class="even">
            <td colspan="5">1.	Company Profile (公司基本情况)</td>
        </tr>
        <tr class="odd">
            <td>(a)	Name of the company/ firm (公司名称)</td>
            <td><input type="text" name="company_name" value="<?= @$info->company_name?>" /></td>
			<td>&nbsp;</td>
			<td>(b)	Name of the Chief Executive Office of the Company(公司负责人)</td>
			<td><input type="text" name="company_ceo" value="<?= @$info->company_ceo?>" /></td>
        </tr>
        <tr class="even">
            <td>(c)	Company engaged in manufacturing or trading(公司类型：生产型，贸易型)</td>
            <td><input type="text" name="company_engaged" value="<?= @$info->company_engaged?>" /></td>
			<td>&nbsp;</td>
			<td>(d)	Main items manufactured(生产的主要产品)</td>
			<td><input type="text" name="manufactured" value="<?= @$info->manufactured?>" /></td>
        </tr>
        <tr class="odd">
           <td>(e)	Main items traded(贸易的主要产品)</td>
            <td colspan="4"><input type="text" name="traded" value="<?= @$info->traded?>" style="width:300px" /></td>
			</tr>
        <tr class="even">
           <td colspan="5">2.	Your company’s investment in Eygpt, if any (presently or in future)(你公司目前或将来在埃及的投资情况)
             <br /><input type="text" name="investment" value="<?= @$info->investment?>"  style="width:600px"/></td>
        </tr>
        <tr class="odd">
           <td colspan="5">3.	Egyptian company with whom doing business on present visit(和埃及的哪些公司有商业关系)
             <br /><input type="text" name="business" value="<?= @$info->business?>" style="width:600px" /></td>
        </tr>
        <tr class="even">
           <td colspan="5">4. Main items of trade with Eygpt (和埃及的主要贸易品种)</td>
        </tr>
        <tr class="odd">
            <td>(a)	Imports (US$/ RMB) (进口) </td>
            <td colspan="4"><input type="text" name="imports" value="<?= @$info->imports?>" style="width:300px" /></td>
        </tr>
        <tr class="even">
            <td>(b)	Export (US$/ RMB) (出口) </td>
            <td colspan="4"><input type="text" name="exports" value="<?= @$info->exports?>" style="width:300px" /></td>
        </tr>
    </tbody>
	</table>
<!-- table end -->
</form>

			</div>
		</div>
		
		<?=$this->load->view('include_sidebar',array('id'=>$id,'forms'=>$forms))?>
	</div>

<script type="text/javascript">
$().ready(function() {
  $("#form").validate({
    rules: {
		company_name:"required",
		company_ceo:"required",
		company_engaged:"required",
		manufactured:"required"
    }
  });
  
	$.datepicker.setDefaults(
		{
		dateFormat: 'dd/mm/yy',
		changeMonth: true,
		changeYear: true,
		showOn: "both",
		buttonImage: "images/calendar.gif",
		buttonImageOnly: true
		}
	);

	//$("#travel_document_issue_date").datepicker();
	

	$("#printInfo").click(function(o) {
		var prints = [
			{rel_id: <?=$cateid?>, rec_id: <?=$id?>}
		]  ;
		
		var jdata = JSON.stringify(prints);
		//alert(jdata);
		$.post("<?=site_url('proxy/does/'.str_replace('==','',base64_encode('http://'.$_SERVER['SERVER_NAME'].':9090/javaprduct/servlet/test')))?>",{clients:jdata},function(msg){alert(msg)});
	});
	
	$("#printInfo").ajaxError(function(event,request, settings){
		//$(this).append("<li>出错页面:" + settings.url + "</li>");
		alert("无法访问"+ settings.url );
	}); 
 
});
</script>

<?=$this->load->view('include_footer',null)?>